package com.yc.Di.bean2_autowired;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author zwei
 * @create 2024-07-29 11:11
 */
@Configuration
@ComponentScan
public class App_autowired {
    public static void main(String[] args) {
        ApplicationContext ac=new AnnotationConfigApplicationContext(App_autowired.class);
        OrderBiz ob= (OrderBiz) ac.getBean("orderBizImpl");
        ob.markeOrder();
    }
}
